package com.syg.logback.consts;

/**
 * @author syg
 * @version 1.0
 * @date 2021年11月24日19:14:46
 * todo 实现AbstractEnum
 */
public enum  LogTypeEnum {
    /**
     * 正常
     */
    NORMAL("NORMAL", "正常"),
    /**
     * 异常
     */
    ERROR("ERROR", "异常"),
    BIZTRAN("BIZTRAN", "业务交易流水埋点"),
    SQL("SQL", "SQL埋点"),
    CHAIN("CHAIN", "调用链埋点"),
    REDIS("REDIS", "Redis调用埋点"),
    REDISMOR("REDISMOR", "Redis调用明细埋点"),
    COS("COS", "COS对象存储调用埋点"),
    FILESTEP("FILESTEP", "文件监控埋点 - 操作步骤信息"),
    FILE("FILE", "文件监控埋点 - 汇总信息");

    private final String value;
    private final String message;
    public static final String TYPE_SPLIT = "@@@";
    public static final String DATA_SPLIT = "#@%@#";
    public static final String EXCEPTION_MSG_SPLIT = "##@##";

    private LogTypeEnum(String value, String message) {
        this.value = value;
        this.message = message;
    }

    public String getMessage() {
        return this.message;
    }

    public String getValue() {
        return this.value;
    }
}
